package com.shhic.hhplt.server.mapper;

import java.util.List;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.shhic.hhplt.server.model.ProductBindingCode;
import com.shhic.hhplt.server.model.ProductBindingCodeQuery;
import com.shhic.hhplt.server.model.ProductSuite;
import com.shhic.hhplt.server.model.ProductSuiteQuery;
import com.shhic.hhplt.server.model.ProductTestResult;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ITestReportDao {

	List<ProductSuite> getProductTestStatusList(String productName, String idCode);

	ProductTestResult getProductTestResult(String productName, String idCode);

	void insertProductSuite(ProductSuite p);

	void updateProductTestResult(ProductTestResult ptr);

	void deleteProductSuite(String productName,String idCode,String suiteName);

	String getTestReportXml(String reportLoc);

	void updateTestReportXml(String reportLoc, String reportXml);

	void insertTestReportXml(String reportLoc, String reportXml);

	List<ProductSuite> queryProductSuite(ProductSuiteQuery query);

	void insertProductTestResult(ProductTestResult p);


	List<ProductBindingCode> queryProductBindingCode(ProductBindingCodeQuery pbcq);

	void insertProductBindingCode(List<ProductBindingCode> pbcl);

	void deleteProductBindingCode(ProductBindingCodeQuery pbcq);

	void updateProductBindingCode(ProductBindingCode pbc);

	List<String> getAllBindingCodeNameList(String productName);

	void insertProductBindingCode(ProductBindingCode pbc);


	/*查询一致性不为yes的*/
	ProductBindingCode queryUniformityNonEqualsYes();

	List<ProductBindingCode> queryByProductNameAndIdCode(String productName,String idCode);

	/*修改指定数据一致性为yes*/
	void setYesForUniformity(ProductBindingCode bindingCode);
}
